
\documentclass[a4paper,12pt,fleqn]{book}
\usepackage{a4wide}
\usepackage[bahasa]{babel}
\usepackage{indentfirst}  %% might not be used
\usepackage{setspace}
\usepackage{latexsym}
\usepackage{geometry}
\usepackage{fancyvrb}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage[all]{xy}
\usepackage[boxed,chapter]{algorithm}
\usepackage[noend]{algorithmic}
\usepackage{makeidx}
\usepackage{appendix}
\usepackage{subfigure}

%% package geometry
\geometry{top=3.0cm}
\geometry{left=3.0cm}
\geometry{right=3.0cm}
\geometry{bottom=3.0cm}
%% package algorithm
\renewcommand{\listalgorithmname}{Daftar Algoritme}
\floatname{algorithm}{Algoritme}
%% \renewcommand{\appendixtocname}{Lampiran}
%% \renewcommand{\appendixpagename}{Lampiran}
%% \setlength{\parindent}{1.0cm}
\graphicspath{{images/}}
\setlength{\parindent}{2.0cm}

\input{Algo3constants}
%% headers and footers are set in individual chapters

	\makeindex
\begin{document}
  
\begin{titlepage} %% Titlepage
	%% \title{Diktat Kuliah \\ Algoritma dan Pemrograman III \\ IKL304} %% Title Properties
	\title{Desain dan Analisa Algoritme}
	%% \author{Djasli Djamarus \and Anung B. Ariwibowo}
	\author{Anung B. Ariwibowo}
	\date{Jurusan Teknik Informatika \\ Fakultas Teknologi Industri \\ Universitas Trisakti}
	%% \begin{abstract}
	%% \end{abstract}
	\maketitle %% Title
\end{titlepage}

%% setspace package
%% \singlespacing
\onehalfspacing
%% \doublespacing

  \setcounter{secnumdepth}{4}
  \setcounter{tocdepth}{3}
  
  \pagenumbering{roman}
  
  \tableofcontents
  \listoffigures
  \addcontentsline{toc}{chapter}{Daftar Gambar}
  \listoftables
  \addcontentsline{toc}{chapter}{Daftar Tabel}
  \listofalgorithms
  \addcontentsline{toc}{chapter}{Daftar Algoritma}
  
  \pagestyle{fancy}
  \fancyhf{}	%% clear header and footer settings
  \fancyhead[LE,RO]{{\scriptsize \rightmark}}
  \fancyhead[LO,RE]{{\scriptsize \leftmark}}
%%  \fancyhead[LE]{\rightmark}
%%  \fancyhead[RO]{\leftmark}
  \fancyfoot[C]{\thepage}
  \renewcommand{\headrulewidth}{0.3pt}
  \renewcommand{\footrulewidth}{0.3pt}
  
  \newpage \pagenumbering{arabic}
  
%%  \include{chIntro}				%% AB's work. Dropped on 2003.Sep.03
  \include{chPendahuluan} %% DD's original work
  \include{chTeknikPemrograman} %% DD's original work
  \include{chBahasaC}			%% DD's original work
  %%\include{chMathFoundations}
  \include{chSorting}
  \include{chMatriks}
  %%\include{chGreedy}
  %%\include{chGraph}
  %%\include{chNPComplete}

%% Appendices
  \appendix
  \addappheadtotoc
%%  \appendixpage
  \include{apDataStructure}

  \pagestyle{myheadings}
	\bibliographystyle{alpha}
	%% \bibliographystyle{unsrt}
  \bibliography{anung}

  \printindex
  \addcontentsline{toc}{chapter}{Indeks}

\end{document}
